﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Top.aspx.cs" Inherits="ProjectStudy.注册登录找回密码修改密码页面.Top" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script type="text/javascript">setInterval("sp_time.innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());", 1000);
    </script>
    <script type="text/javascript">
        window.onload = function () {
            var a = $("#hfUsername").val();
            if (a != null && a != "") {
                $("#sp_status").html(a);
            }
            $("#aExit").click(function () {
                if (confirm("确认退出登录？")) {
                    $.ajax({
                        type: "post",
                        url: "/Ajax/RegisterLoginChangePwdFindPwd.ashx",
                        data: { "action": "logout" },
                        dataType: "json",
                        success: function (data) {
                            logout();
                        },
                        error: function (err) { }
                    });
                }
            });

            $("#aExit").mouseover(function () {
                $("#aExit").css("cursor", "pointer");
                
            });
        };
    </script>
</head>
<body style=" background-color:	#2894FF;">
    <form id="form1" runat="server">
    <div>
    <span id="sp_time" style=" position:absolute; margin-top:10px; color:White;"></span>
    </div>   
    <div style=" text-align:center;">
    <span id="Span1" style=" text-align:center; color:White; font-weight:bold; font-size:25px;" >XXX管理系统</span>  
    <img  src="/images/close20.png" id="aExit"  title="退出登录" alt="退出登录" height="23px" width="23px" style="float:right; margin-right:100px;" />
    <span id="sp_status" style="float:right; margin-right:15px; color:White;"></span>
        <asp:HiddenField ID="hfUsername" runat="server" />
    <img src="/images/administrator.png" height="20px" width="20px;" style=" float:right;  margin-right:10px;" />
    </div>
   </form>
    <script type="text/javascript">
        function logout() {
            top.location.href = "Login.aspx";
        }
    </script>
</body>
</html>
